package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Category;
import com.itheima.bean.MyPage;

import java.util.List;

public interface CategoryService {
    int add(Category category);

    IPage<Category> findPage(MyPage page);

    int delete(long id);

    int update(Category category);

    List<Category> findType(Integer type);

   Category findById(Long id);
}
